import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";


const routes :RouteRecordRaw[]=[]

const modules = import.meta.globEager("./modules/**/*.ts")

for (const modulesKey in modules) {

  routes.push(...modules[modulesKey].default)

}

console.log('目前所有路由如下',routes)

const router = createRouter({
  history:createWebHistory(),
  routes
})

export default router